//
//  CedarBaseResponse.h
//  CedarFinancePH
//
//  Created by lshenrong on 2018/4/17.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_OPTIONS(NSInteger, BusinessResponseType) {
    ResponseTypeNoNet =       -1,//无网络
    ResponseTypeScuess =       1,//业务正常
    ResponseTypeFailure =      1001,//业务失败
    ResponseTypeForbidden =    1002,//无权限
    ResponseTypeUnauthorized = 1003,//非法访问
    ResponseTypeTokenExpired = 1004, //Token失效
    ResponseTypeParameterError = 1005, //参数异常
    ResponseTypeNoneAuth = 1006, //未实名
    ResponseTypeNoneBindCard = 1007, //未绑卡
    ResponseTypeNotEnoughMoney = 1008, //余额不足
    ResponseTypeNotExchangeReward = 1011, //是否使用兑换奖励
    ResponseTypePhoneCode = 1013 //电话号码已注册
};



@interface CedarBaseResponse : NSObject

@property (nonatomic,copy) NSString *serialNumber;
@property (nonatomic,assign) BusinessResponseType code;
@property (nonatomic,copy) NSString *msg;

@property (nonatomic,copy) NSString *message;
@property (nonatomic,copy) NSString *messageCode;

@property (nonatomic,strong) NSObject *dataObject;//dictionary

@property (nonatomic,strong) NSDictionary *responseHeaderFields;//返回头

@end
